﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="visualizarLocatoarios.aspx.cs" Inherits="Imobitech.Gestao.visualizarLocatoarios" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView ID="gdvLocatario" runat="server" AutoGenerateColumns="False" BackColor="#f2f2f2"
        BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" DataKeyNames="Id"
        ForeColor="Black" GridLines="Vertical">
        <FooterStyle BackColor="#CCCCCC" />
        <Columns>
            <asp:BoundField DataField="id" HeaderText="Cód" ReadOnly="True" SortExpression="Id"
                InsertVisible="False" HeaderStyle-Width="10px" Visible="false" />
            <asp:BoundField DataField="nome" HeaderText="Nome do Locatário" HeaderStyle-Width="200px"
                SortExpression="Nome" ItemStyle-HorizontalAlign="Left" ItemStyle-CssClass="nometabela">
                <HeaderStyle Width="350px"></HeaderStyle>
                <ItemStyle HorizontalAlign="Left" CssClass="nometabela"></ItemStyle>
            </asp:BoundField>
            <asp:BoundField DataField="endereco" HeaderText="Endereço" HeaderStyle-Width="200px"
                SortExpression="Nome" ItemStyle-HorizontalAlign="Left" ItemStyle-CssClass="nometabela">
                <HeaderStyle Width="350px"></HeaderStyle>
                <ItemStyle HorizontalAlign="Left" CssClass="nometabela"></ItemStyle>
            </asp:BoundField>
            <asp:HyperLinkField HeaderText="Ver dados do Locatário" ItemStyle-HorizontalAlign="Center"
                Text="&lt;img src='../imagens/ico_editar.gif' border='0' alt='Alterar'&gt;" DataNavigateUrlFields="id"
                DataNavigateUrlFormatString="../Gestao/EditarPessoa.aspx?Id={0}" />
            <asp:HyperLinkField HeaderText="Ver Anúncios" ItemStyle-HorizontalAlign="Center"
                Text="&lt;img src='../imagens/ico_editar.gif' border='0' alt='Alterar'&gt;" DataNavigateUrlFields="idImovel"
                DataNavigateUrlFormatString="../Gestao/EditarImovel.aspx?Id={0}" />
        </Columns>
        <PagerStyle BackColor="#3b5985" ForeColor="white" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#9dacc2" ForeColor="White" />
        <HeaderStyle BackColor="#3b5985" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="#e5e5e5" />
    </asp:GridView>
</asp:Content>
